package com.robot.topology.graph.domain;

import java.util.HashMap;
import java.util.List;

public class RoutineTable {
	
		/**
	 * 
	 */
	private static final long serialVersionUID = -7830116867561362589L;
	//private static final float initialForce = (float)0.5;

	private HashMap<Edge,Double> theRoutineTable;
	
		public RoutineTable (List<Edge> listEdges){
			this.theRoutineTable=this.initialize(listEdges);
		}

		private HashMap<Edge,Double> initialize(List<Edge> listEdges) {
			theRoutineTable = new HashMap<Edge,Double>();
			
			for (Edge currentEdge : listEdges){
			 	theRoutineTable.put((Edge)currentEdge, currentEdge.getWeight());
			}

			return theRoutineTable;
		}

		public HashMap<Edge, Double> getTheRoutineTable() {
			return theRoutineTable;
		}

//		private List<Edge> getOutgoingEdgesFromVertex (){
//			ArrayList<Edge> listEdges;
//			
//			return listEdges;
//		}
		// No update of the routing table, just update of the edge weights!
//		public void updateRoutineTable (Edge edgeToUpdate, Float newForceEdge){
//			
//			if (theRoutineTable.containsKey(edgeToUpdate)){
//					
//			}
//					
//			(theRoutineTable.get(edgeToUpdate)).;
//		}
}
